//
//  ScanViewController.h
//  SeaChat
//
//  Created by dllo on 16/6/15.
//  Copyright © 2016年 潘强. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ScanViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate,UIAlertViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>

{
    int num;
    BOOL upOrdown;
    NSTimer * timer;
    UIImageView * imageView;
    
    BOOL hasCameraRight;
}
@property (retain,nonatomic)AVCaptureDevice * device;
@property (retain,nonatomic)AVCaptureDeviceInput * input;
@property (retain,nonatomic)AVCaptureMetadataOutput * output;
@property (retain,nonatomic)AVCaptureSession * session;
@property (retain,nonatomic)AVCaptureVideoPreviewLayer * preview;
@property (nonatomic, retain) UIImageView * line;
@property(nonatomic,retain)UIButton *lightButton;
@property (retain, nonatomic) CIDetector *detector;


@end
